home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Demo / turing / inc.tm < prev    next >
Encoding:
Text File  |  1994-04-28  |  278 b   |  8 lines  |  [TEXT/R*ch]

  1. <1, 'a'> --> <1, R>    ; Given a number as a sequences of a's increase it
  2. <1, ' '> --> <0, 'a'>    ; by one
  3.  
  4. <1, 'S'> --> <1, R>    ; given a number of the form SSSSS...SSS0
  5. <1, '0'> --> <2, 'S'>    ; add another S
  6. <2, 'S'> --> <2, R>    ; go right one
  7. <2, ' '> --> <0, '0'>    ; append the zero
  8.